<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1 , user-scalable=no">
  <title>陕西陇朝盈科技有限公司</title>
  <link rel="stylesheet" href="css/bootstrap.min.css" />
  <link rel="stylesheet" href="css/index.css" />
  <link rel="stylesheet" href="css/input.css"/>
  <script src="js/jquery-1.11.3.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <script src="js/jquery.form.js"></script>
  <!--[if lt IE 9]>
  <script src="js/html5shiv.min.js"></script>
  <script src="js/respond.min.js"></script>
  <![endif]-->
  <!--<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>-->
</head>

<body>
<!--导航-->
<nav class="navbar navbar-default" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-collapse">
        <span class="sr-only">切换导航</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand logo" href="index.html"></a>
    </div>
    <div class="collapse navbar-collapse" id="example-navbar-collapse">
      <ul class="nav navbar-nav navbar-right">
        <li>
          <a href="index.html">首页</a>
        </li>
        <li>
          <a href="service.html">服务领域</a>
        </li>
        <li>
          <a href="apply_zhiwei.html">招聘信息</a>
        </li>
        <li>
          <a href="add.html">加入我们</a>
        </li>
        <li>
          <a href="contact.html">联系我们</a>
        </li>
      </ul>
    </div>
  </div>
</nav>
<!--导航-->

<!--home-->
<div id="home">
  <div class="lvjing">
    <div class="row wow fadeInUp" data-wow-duration="0.5s">
      <img class="img-responsive" src="images/banner5.jpg" alt="" />
    </div>
  </div>
</div>
<!--home-->

<div id="bbs2" style="background: 0">
  <div class="container">
    <div class="row" id="ss_details" >
      <!--<div class=" col-md-3 col-sm-3 hidden-xs details_left" style="padding-right: 0">-->
       <!--<h3 >时事新闻</h3>-->
        <!--<p>社保详情</p>-->
      <!--</div>-->
      <!--<div class=" col-md-9 col-sm-9 col-xs-12 details_right" style="padding-right: 0">-->
        <!--<div class="details_title">社保详情</div>-->
        <!--<div class="social_details">-->
          <!--<ul class="infolist">-->
            <!--<li>-->
              <!--<span>2019-12-23</span>-->
              <!--<a href="news_details.html" target="_blank" title="西安文理学院继续教育学院关于2020届毕业实习及毕业实习报告写作收缴工作的通知">-->
                <!--西安文理学院继续教育学院关于2020届毕业实习及毕业实习报告写作收缴工作的通知nfgbntgmerkregmtrhnmyibhn gbnuv fsdfvsducb-->
              <!--</a>-->
            <!--</li>-->
          <!--</ul>-->
        <!--</div>-->
      <!--</div>-->
    </div>
  </div>
</div>

<!--footer-->
<div class="footer">
  <div class="container">
    <div class="row">
      <div class="col-md-6 col-sm-6 col-xs-12">
        <div class="row">
          <div class="col-md-4 col-sm-4 col-xs-4">
            <h4>服务热线</h4>
            <ul class="list-unstyled">
              <li>
                <a href="#">人力资源服务</a>
              </li>
              <li>
                <a href="#">陕西社保</a>
              </li>
              <li>
                <a href="#">代办代缴</a>
              </li>
            </ul>
          </div>
          <div class="col-md-4 col-sm-4 col-xs-4">
            <h4>加入我们</h4>
            <ul class="list-unstyled">
              <li>
                <a href="#">期待和您一起</a>
              </li>
              <li>
                <a href="#">奋进</a>
              </li>
            </ul>
          </div>
          <div class="col-md-4 col-sm-4 col-xs-4">
            <h4>招聘社区</h4>
            <ul class="list-unstyled">
              <li>
                <a href="#">中粮业务代表</a>
              </li>
              <li>
                <a href="#">迎聘岗位</a>
              </li>
            </ul>
          </div>
        </div>
      </div>
      <div class="col-md-6 col-sm-6 col-sm-12">
        <div class="row">
          <div class="col-md-6 col-sm-6 col-xs-6">
            <h4>联系我们</h4>
            <ul class="list-unstyled">
              <li>
                <a href="#">办公地址：陕西省西安市经济开发区凤城二路海璟国际A座1801室</a>
              </li>
              <li>
                <a href="#">座机：89619882</a>
              </li>
              <li>
                <a href="#">电话：17782655152</a>
              </li>
            </ul>

          </div>
          <div class="col-md-6 col-sm-6 col-xs-6">
            <ul class="list-unstyled">
              <li>
                <a href="#"><img style="width: 50%;height:auto;" src="images/top_03.png" alt="" /></a>
              </li>
            </ul>
            <p>扫一扫了解更多职位</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<!--footer-->

<script>
  var areaId =getUrlParam("areaId");
  var areaTitle =getUrlParam("areaTitle") ;

  console.log(areaId);
  //时事新闻
  $(document).ready(function(){
    $.ajax({
      type: "GET", //请求方式
      url: "http://www.ypinkj.com/api/area/web/getAllServiceTow?id="+areaId, //地址，就是json文件的请求路径
      dataType: "json", //数据类型可以为 text xml json  script  jsonp
      success: function(res) { //返回的参数就是 action里面所有的有get和set方法的参数
        var dats = res.data;
        console.log(dats);
        if(res.msg="成功") {
          console.log(areaTitle)
          var str = '';
//          for(var j=0;j<dats.length;j++){
//            console.log(dats[j].areaTitle)
            var list = '';
            list +="<div class=' col-md-3 col-sm-3 hidden-xs details_left' style='padding-right: 0'>"
            list +="<h3 >时事新闻</h3>"
            list +="<p>"+areaTitle+"</p>"
            list +="</div>"
            list +="<div class='col-md-9 col-sm-9 col-xs-12 details_right' style='padding-right: 0'>"
            list +="<div class='details_title'>"+areaTitle+"</div>"
            list +="<div class='social_details'>"
            list +="<ul class='infolist'>"
            for(var i=0;i<dats.length; i++){
              console.log(dats[i].areaId);
              list += " <li>"
              list += "<span>"+dats[i].areaUpdateTime+"</span>"
              list += "<a target='_blank' href='news_details.html?areaId="+dats[i].areaId +"'>" + dats[i].areaText + "</a>"
  //            list += "<a target='_blank' href='news_details.html?aid=" + dats[0].Id +"'>" + dats[0].areaText + "</a>"
  //            list +="<a target='_blank' href='security _details.html?areaId="+dats[i].Id+"'>"
              list += "</li>";
            }
              list +="</ul>"
              list +="</div>"
              list +="</div>"
            str += list;
//          }
        $("#ss_details").append(str);
        }
      }
    });
  });
  //获取多个地址栏信息，name为地址栏参数名,可以传递多个参数
  // 形式为 .html?id=12&a=2
  function getUrlParam(name) {
    var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return decodeURIComponent(r[2]); return null;
  }
</script>
</body>
</html>
